package com.atguigu.spzx.product.vo;

import com.alibaba.fastjson.JSONArray;
import com.atguigu.spzx.product.entity.Category;
import com.atguigu.spzx.product.entity.Product;
import com.atguigu.spzx.product.entity.ProductSku;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
@ApiModel(description = "商品详情反参")
public class ProductDetailsRespVo {

   @ApiModelProperty(value = "商品sku信息")
   private ProductDetailsInnerProductSku productSku;

   @ApiModelProperty(value = "商品信息")
   private ProductDetailsInnerProduct product;

   @ApiModelProperty(value = "商品轮播图列表")
   private List<String> sliderUrlList;

   @ApiModelProperty(value = "商品详情图片列表")
   private List<String> detailsImageUrlList;

   @ApiModelProperty(value = "商品规格信息")
   private JSONArray specValueList;

   @ApiModelProperty(value = "商品规格对应商品skuId信息")
   private Map<String,Object> skuSpecValueMap;

    @Data
    @ApiModel(description = "商品详情-商品内部类")
    public static class ProductDetailsInnerProduct extends Product {

    }

    @Data
    @ApiModel(description = "商品详情-商品sku内部类")
    public static class ProductDetailsInnerProductSku extends ProductSku {

    }

}
